package cn.aitrox.ry.service.image.controller;

import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.service.image.api.ImageApi;
import cn.aitrox.ry.service.image.dto.image.in.ImageQueryInDto;
import cn.aitrox.ry.service.image.dto.image.out.ImageInfoOutDto;
import cn.aitrox.ry.service.image.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ImageController implements ImageApi {

    @Autowired
    private ImageService imageService;

    @RequestMapping("/image/query")
    @Override
    public RespResult<List<ImageInfoOutDto>> query(@RequestBody ImageQueryInDto input) {
        return imageService.query(input);
    }
}
